package com.qhg.saas_server.service;

import com.qhg.saas_server.MyException.roadNotFindExcepiton;
import com.qhg.saas_server.empty.Result;
import com.qhg.saas_server.pojo.dto.RoadDto;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;

public interface RoadService {
    Result getRoadListByCondition(HashMap<String, Object> hashMap);

    Result getRoadDetailsByRoadId(Integer roadId) throws roadNotFindExcepiton;

    Result addRoad(RoadDto roadDto);

    Result deleteRoad(Integer roadId);

    Result updateRoad(RoadDto roadDto);

    void clearAllRoadDetils(Integer roadId);

    void deleteRoadDetil(@Param("roadId") Integer roadId, @Param("storeId") Integer storeId);
}
